<?php

require_once "Database.php";

class RegisterHandler{
	
	//Variabel för session
	private $m_RegisterSession = "Register";
	private $m_db = NULL;
	
	
public function __construct(Database $db){

			$this->m_db = $db;
	}
	//Anropar SQL-queryn i Connect
	public function DoRegister($username,$password)
	{
			$this->m_db->Register($username, $password);
	}
	
	public function DoCheckMembers($username,$password)
	{
		
		$this->m_db->Members($username, $password);
		
	}
	
	//Tar bort användare via användarnamnet
	public function DoDelete($d_username)
	{
			$this->m_db->Delete($d_username);
	}
}
		
?>